#ifndef ADD_STUDENT_H
#define ADD_STUDENT_H

#include <QDialog>
#include <QCloseEvent>
#include <QSqlDatabase>
#include <QDebug>
#include <QDialog>
#include <QLabel>
#include <QPaintEvent>
#include <QMessageBox>
#include <QComboBox>
#include <QSpinBox>
#include <QTextBrowser>
#include <QLineEdit>
#include <QPixmap>
#include <QPainter>
#include <QSqlDatabase>
#include <QSqlError>
#include <QDebug>
#include <QProgressBar>
#include <QRadioButton>
#include <QSqlQuery>
namespace Ui {
class add_Student;
}

class add_Student : public QDialog
{
    Q_OBJECT

public:

    explicit add_Student(QWidget *parent = 0);
    ~add_Student();
    void connect2db();
    void createtable();
    void insertRow();
protected:

    //添加按钮窗口add_student关闭事件监测
    void closeEvent(QCloseEvent *);

private:

    Ui::add_Student *ui;
    QSqlDatabase db;

signals:

    void add_close();

private slots:

    void on_pushButton_2_clicked();
    void on_pushButton_clicked();
};

#endif // ADD_STUDENT_H
